package com.example.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.system.entity.Doctor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 王鹤蒲
 * @since 2024-01-22
 */
@Mapper
public interface DoctorMapper extends BaseMapper<Doctor> {

    public Page<Doctor> findByPage(Page<Doctor> page,String doctorName,String departmentName);

    public List<Doctor> findAllByDepartmentId(Integer departmentId);
    public List<Map<String,Object>> findAllDoctorNames();
}
